package com.leostadyn.stackfarm.timestatistics.utils;

import java.text.SimpleDateFormat;
import java.util.Date;


public class TimeUtils {
    public static String getTime(long mTime){
        java.text.DateFormat format1 = new java.text.SimpleDateFormat("yyyy-MM-dd");
        return format1.format(new Date(mTime));
    }

    public static String getTime1(long mTime){
        java.text.DateFormat format1 = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm");
        return format1.format(new Date(mTime));
    }

    public static String getTime2(Date mTime) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd");
        return sdf.format(mTime);
    }

}
